package com.smart.oil.mapper;

import com.smart.oil.entity.SmUser;
import com.smart.oil.vo.req.UserPageReqVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SmUserMapper {
    int deleteByPrimaryKey(String id);

    int insert(SmUser record);

    int insertSelective(SmUser record);

    SmUser selectByPrimaryKey(String id);

    int updateByPrimaryKeySelective(SmUser record);

    int updateByPrimaryKey(SmUser record);

    SmUser getUserInfoByName(String username);

    List<SmUser> selectAll(UserPageReqVO vo);

    int deletedUsers(@Param("smUser") SmUser smUser, @Param("list") List<String> list);

    //根据部门id集合查找用户
    List<SmUser> selectUserInfoByDeptIds (List<String> deptIds);
}